﻿namespace CodeLibrary.Extensions.Common
{
    public static class NumericDateTime
    {
        public static TimeSpanSelector Weeks(this int i)
        {
            return new WeekSelector { ReferenceValue = i };
        }
        
        public static TimeSpanSelector Days(this int i)
        {
            return new DaysSelector { ReferenceValue = i };
        }
        
        public static TimeSpanSelector Years(this int i)
        {
            return new YearsSelector { ReferenceValue = i };
        }
        
        public static TimeSpanSelector Hours(this int i)
        {
            return new HourSelector { ReferenceValue = i };
        }
        
        public static TimeSpanSelector Minutes(this int i)
        {
            return new MinuteSelector { ReferenceValue = i };
        }
        
        public static TimeSpanSelector Seconds(this int i)
        {
            return new SecondSelector { ReferenceValue = i };
        }
    }    
}
